package com.syyo.gulimall.ware.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.syyo.gulimall.ware.domain.entity.PurchaseDetailEntity;
import com.syyo.gulimall.ware.domain.req.PurchaseDetailReq;

/**
 * @author syyo
 * @email syyo@gmail.com
 * @date 2021-01-20 10:06:54
 */
public interface PurchaseDetailService extends IService<PurchaseDetailEntity> {

    /**
     * 新增
     */
    int add(PurchaseDetailReq req);

    /**
     * 删除
     */
    int del(Integer id);

    /**
     * 编辑
     */
    int edit(PurchaseDetailReq req);

    /**
     * 详情
     */
    PurchaseDetailEntity findOne(Integer id);

    /**
     * 列表
     */
    IPage<PurchaseDetailEntity> findAll(Integer pageNum, Integer pageSize, PurchaseDetailReq req);

}

